import requestsso from '@/network/auth_model.js'
import request from '@/network/auth_sso.js'
export default {

    //sso登录接口
    SsoLogin(data){
        return request({
            url: '/service/login',
            method:'post',
            data: data
        })
    },


        //测试接口
          getList(){
            return request({
                url: '/order/perssion/getlist',
                method: 'get'
              })
        },
    //登录接口
        Login(mdosuser){
            return request({
                url: '/mdos/login',
                method:'post',
                data: mdosuser
            })
        },

    //查询权限菜单
        getPermissList(pageNum,pageSize,search){
            return request({
                url: '/order/perssion/getPermissList',
                method:'get',
                params: {pageNum,pageSize,search}
            })
        },

        //新增权限菜单
        savePermiss(permission){
            return request({
                url: '/order/perssion/savePermiss',
                method:'post',
                data: permission
            })
        },


          //删除权限菜单
          deleteById(id){
            return request({
                url: '/order/perssion/deleteById',
                method:'delete',
                params:{id}
            })
        },

            //修改权限菜单
            update(permission){
                return request({
                    url: '/order/perssion/update',
                    method:'put',
                    data:permission
                })
            },


            //全部权限菜单
            allPermission(){
                return request({
                    url: '/order/perssion/all',
                    method:'get'
                })
            },
    
}